﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="regiter.aspx.cs" Inherits="views_regiter" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style>
        p
        {
            margin: 10px;
            height: 25px;
        }
    </style>
    <script language="javascript" type="text/javascript">
        function alpha(e) {
            var k;
            document.all ? k = e.keyCode : k = e.which;
            return ((k > 64 && k < 91) || (k > 96 && k < 123) || k == 8 || k == 32 || (k >= 48 && k <= 57));
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="width: 740px; height: auto;">
        <div style="width: 250px; height: auto; float: left;">
            <p style="text-align: right;">
                Tên Tài khoảng :</p>
            <p style="text-align: right;">
                Mật khẩu :</p>
            <p style="text-align: right;">
                Họ Tên :</p>
            <p style="text-align: right;">
                Ngày Sinh :</p>
            <p style="text-align: right;">
                Email :</p>
            <p style="text-align: right;">
                Số Điện Thoại :</p>
            <p style="text-align: right;">
                Địa Chỉ :</p>
            <p style="text-align: right;">
                Địa Chỉ Giao Hàng :</p>
            <p style="text-align: right;">
                Ghi Chú :</p>
        </div>
        <div style="width: 490px; height: auto; float: left;">
            <p>
                <asp:TextBox ID="txtusername" onkeypress="return alpha(event)" runat="server" 
                    Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator"
                    ControlToValidate="txtusername">*</asp:RequiredFieldValidator>
                <asp:Label ID="lbcheck" runat="server" Text=""></asp:Label>
            </p>
            <p>
                <asp:TextBox ID="txtpassword" runat="server" TextMode="Password" Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="RequiredFieldValidator"
                    ControlToValidate="txtpassword">*</asp:RequiredFieldValidator>
            </p>
            <p>
                <asp:TextBox ID="txtfullname" runat="server" Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="RequiredFieldValidator"
                    ControlToValidate="txtfullname">*</asp:RequiredFieldValidator>
            </p>
            <p>
                <asp:TextBox ID="txtbrithday" runat="server" Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="RequiredFieldValidator"
                    ControlToValidate="txtbrithday">*</asp:RequiredFieldValidator>
            </p>
            <p>
                <asp:TextBox ID="txtemail" runat="server" Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtemail"
                    ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtemail"
                    ErrorMessage="RegularExpressionValidator" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
            </p>
            <p>
                <asp:TextBox ID="txtfone" runat="server" Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtfone"
                    ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtaddress2"
                    ErrorMessage="RegularExpressionValidator" ValidationExpression="\d*">*</asp:RegularExpressionValidator>
            </p>
            <p>
                <asp:TextBox ID="txtaddress" runat="server" Width="450px"></asp:TextBox></p>
            <p>
                <asp:TextBox ID="txtaddress2" runat="server" Width="450px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtaddress2"
                    ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
            </p>
            <p style="height: 200px;">
                <asp:TextBox ID="txtnote" runat="server" Height="198px" TextMode="MultiLine" Width="450px"></asp:TextBox></p>
            <p>
                <asp:Button ID="btnok" runat="server" Text="Đăng ký" Width="100px" OnClick="btnok_Click" /></p>
        </div>
    </div>
    </form>
</body>
</html>
